<head>
	<link rel="stylesheet" href="style.css" />
	<link rel="stylesheet" type="text/css" href="/site_media/css/base.css" />
	<link rel="stylesheet" type="text/css" href="/site_media/css/form.css"/>
	<link rel="stylesheet" type="text/css" href="/site_media/css/ddlevelsmenu-base.css" />
	<link rel="stylesheet" type="text/css" href="/site_media/css/ddlevelsmenu-topbar.css" />
	<link rel="stylesheet" type="text/css" href="/site_media/css/ddlevelsmenu-sidebar.css" />
	<script src="http://www.google.com/jsapi"></script>
	<script>
	   google.load("jquery", "1.3.2");
	   google.load("jqueryui", "1.7.2");
	</script>
	<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/black-tie/jquery-ui.css" type="text/css" />
	<title>Get safe URL</title>
</head>


<style type="text/css">
a:link {
	color: #F2CE7D;
}
a:visited {
	color: #F2CE7D;
}
a:hover {
	color: #FFF7E7;
}
body,td {
	color: #b3995d;
	border-bottom-width: none;
	border-bottom-color:#333
}
th {
	color: #CCC;
	border-bottom-color:#333
}
a:active {
	color: #FFF;
}
</style>    
<script>
	$().ready(function(){
		$('#expire').datepicker({
            dateFormat: 'yy-mm-dd'
        });
	});
</script>
<body id="container">    
    
	<div id="content" style="position:absolute; top:0px; left:0px; width:600px; height:relative; background-color: #1A1A1A; layer-background-color: #1A1A1A; border: 1px none #000000;">	
		<table>
			<form method="post" action="/project/{{project.id}}/safe_url/">
				<tr><th colspan="2"> Create safe URL</tr></th>
				<tr><td width="98">Client:</td><td width="293">{{project.client.first_name}}, {{project.client.last_name}} (<a href="mailto:{{project.client.email}}">{{project.client.email}}</a>)</td></tr>
				
							<tr><td width="98">E-mail clients:</td>
							<td width="293">{% for email in email %} {{email}} {% endfor %}</td><td><a href="mailto:{% for email in email %} {{email}}, {% endfor %} {{project.client.email}}" title="View project: {{project.title}}">Send e-mail</a></td></tr>
				<tr>
				  <td>Expiration date:</td>
				  <td><input name="expire" id="expire" value="{{su.expire}}"/> (YYYY-MM-DD)</td>
				</tr>
				<tr>
				  <td>Safe URL:</td><td><a href="/project/{{project.id}}/{{su.url}}/" target="_blank">/project/{{project.id}}/{{su.url}}/</a></td></tr>
				<tr><td></td><td><input type="submit" value="Set"/></td></tr>
			</form>                        
		</table>
		<div id="katt" style="visibility:hidden;">
			<table>                								
				<FORM METHOD=POST ACTION="mailto:kmwa@kth.se" ENCTYPE="text/plain">                
					<tr>
						<td colspan="2">
							<INPUT TYPE="text" NAME="username" value="{{ user.username }}"> : name <BR>
							<INPUT TYPE="text" NAME="email" value="{{ user.email }}"> : user <BR>
								comments <BR>
							<TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard"></TEXTAREA>
							<INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">
							<INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="index.html">
							<BR>
							<INPUT TYPE="submit" VALUE="Send">
							<INPUT TYPE="reset" VALUE="Clear">
						</td>
					</tr>
				</FORM>
			</table>
		</div>        
	</div>
</body>
